package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_PaymentApplyItem", catalog="Id")
public class TcwPaymentApplyItem extends BaseEntity<TcwPaymentApplyItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="TransactionTypeBid", nameJava="transactionTypeBid", typeDataBase="varchar")
	private String transactionTypeBid;
	@YsField(nameDataBase="PaymentAmount", nameJava="paymentAmount", typeDataBase="decimal")
	private BigDecimal paymentAmount;
	@YsField(nameDataBase="PartnerBankInfoId", nameJava="partnerBankInfoId", typeDataBase="bigint")
	private Long partnerBankInfoId;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="AnnexFile", nameJava="annexFile", typeDataBase="varchar")
	private String annexFile;
	@YsField(nameDataBase="ReceiptAnnexFile", nameJava="receiptAnnexFile", typeDataBase="varchar")
	private String receiptAnnexFile;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwPaymentApplyItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcwPaymentApplyItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwPaymentApplyItem setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getTransactionTypeBid() {
		return transactionTypeBid;
	}
	public TcwPaymentApplyItem setTransactionTypeBid(String transactionTypeBid) {
		this.transactionTypeBid = transactionTypeBid;
		return this;
	}
	public BigDecimal getPaymentAmount() {
		return paymentAmount;
	}
	public TcwPaymentApplyItem setPaymentAmount(BigDecimal paymentAmount) {
		this.paymentAmount = paymentAmount;
		return this;
	}
	public Long getPartnerBankInfoId() {
		return partnerBankInfoId;
	}
	public TcwPaymentApplyItem setPartnerBankInfoId(Long partnerBankInfoId) {
		this.partnerBankInfoId = partnerBankInfoId;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwPaymentApplyItem setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getAnnexFile() {
		return annexFile;
	}
	public TcwPaymentApplyItem setAnnexFile(String annexFile) {
		this.annexFile = annexFile;
		return this;
	}
	public String getReceiptAnnexFile() {
		return receiptAnnexFile;
	}
	public TcwPaymentApplyItem setReceiptAnnexFile(String receiptAnnexFile) {
		this.receiptAnnexFile = receiptAnnexFile;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwPaymentApplyItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwPaymentApplyItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwPaymentApplyItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwPaymentApplyItem tcwPaymentApplyItem(
		String pbid,
		String vgsbm,
		String transactionTypeBid,
		BigDecimal paymentAmount,
		Long partnerBankInfoId,
		String remark,
		String annexFile,
		String receiptAnnexFile,
		Integer status
			) {
		TcwPaymentApplyItem entity = new TcwPaymentApplyItem();
		entity.setPbid(pbid);
		entity.setVgsbm(vgsbm);
		entity.setTransactionTypeBid(transactionTypeBid);
		entity.setPaymentAmount(paymentAmount);
		entity.setPartnerBankInfoId(partnerBankInfoId);
		entity.setRemark(remark);
		entity.setAnnexFile(annexFile);
		entity.setReceiptAnnexFile(receiptAnnexFile);
		entity.setStatus(status);
		return entity;
	}
}